package fr.vvins.core.user.entity;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import fr.vvins.core.dao.EntityImpl;


/**
 * Community entity
 */
@Entity
@Table(schema="vvins", name="VV_COMMUNITY")

public class Community extends EntityImpl implements Serializable {

	private static final long serialVersionUID = -7320368728432617300L;
	@Id
	@GeneratedValue
	@Column(name="ID")
	private Integer id;
	@Basic
	@Column(name="NAME")
	private String name;
	@Basic
	@Column(name="URL")
	private String url;


	public Community() {
	}


	public Community(Integer id, String name, String url) {
		super();
		this.id = id;
		this.name = name;
		this.url = url;
	}


	@Override
	public Integer getId() {
		return id;
	}


	@Override
	public void setId(Integer id) {
		this.id = id;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public String getUrl() {
		return url;
	}


	public void setUrl(String url) {
		this.url = url;
	}

	
}
